package cn.edu.sgu.www.pms.dto;

import cn.edu.sgu.www.pms.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class EmailDTO implements Serializable {
    private static final long serialVersionUID = 18L;

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 邮箱账号
     */
    @NotBlank(message = "邮箱账号" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "邮箱账号", required = true)
    private String account;

    /**
     * 用户ID
     */
    @NotBlank(message = "用户" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "用户ID", required = true)
    private String userId;

    /**
     * 启用状态
     */
    @NotNull(message = "启用状态" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "启用状态", required = true)
    private Integer state;
}